<local:DocumentBase x:Class="WPFExcelReport.TYTVA06"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                    xmlns:WK="clr-namespace:WPFExcelReport;assembly=TWASTKE"  
                    xmlns:BF="clr-namespace:WPFExcelReport;assembly=TBSFARB"   
                    xmlns:BT="clr-namespace:WPFExcelReport;assembly=TWTSAER"  
                    xmlns:WG="clr-namespace:WPFExcelReport;assembly=TWASTGA" 
                    xmlns:VD="clr-namespace:WPFExcelReport;assembly=TVADBLATT"
                    xmlns:FT="clr-namespace:WPFExcelReport;assembly=TWTSCHUSS" 
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM" 
                    xmlns:DF="clr-namespace:WPFExcelReport;assembly=TWTEINZ"  
                     xmlns:WTW="clr-namespace:WPFExcelReport;assembly=TWTGEW"  
                     xmlns:BG="clr-namespace:WPFExcelReport;assembly=TBASTGA"  
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                     xmlns:CO="clr-namespace:WPFExcelReport;assembly=TICC_ABPOS_MCO" 
                    xmlns:MUX="clr-namespace:WPFExcelReport;assembly=TICC_ABAUFM" 
                    xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS"   
                     xmlns:AR="clr-namespace:WPFExcelReport;assembly=TABPR"   
                     xmlns:U="clr-namespace:WPFExcelReport;assembly=ITXUI"  
                    xmlns:BS="clr-namespace:WPFExcelReport;assembly=TBSSATZ"   
                    xmlns:BC="clr-namespace:WPFExcelReport;assembly=TBSFARB"  
                     xmlns:ST="clr-namespace:WPFExcelReport;assembly=TSTUELI"  
                      xmlns:BH="clr-namespace:WPFExcelReport;assembly=TBHSATZ"   
                    Name="TV" 
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter x:Key="not"/>
    </local:DocumentBase.Resources>
    <TabControl>
        <TabItem Header="管理">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="1*"></RowDefinition>
                    <RowDefinition Height="1*"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <U:TTYTVA06 Grid.Row="1"  Grid.Column="0" 
                             KOLL="SJH  "
                             IsComposition="True"
                            Name="cVA" 
                                IsSameProdArt="True" 
                          IsShowTxt="True"
                            FDDIM="CM "
                             ARTST="F"
                              VAPR ="{Binding WFART,ElementName=TV}"
                          />
                <TabControl Grid.Row="2" Grid.Column="0" >
                    <TabItem Header="规格">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="1*"></ColumnDefinition>
                                <ColumnDefinition Width="1*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <U:WSTYTBOX Grid.Row="1"  Grid.Column="0"  
                                Margin="5,0,0,0" Name="cWS" 
                                IsAuto="True" 
                                IsImage="False"
                                 DES="{Binding DES,ElementName=cVA}"  
                                ARTGRP="{Binding ARTGRP,ElementName=cVA}"  
                                PRODGRP="{Binding PRODGRP,ElementName=cVA}"  
                                ORDERNUM="{Binding PRART,ElementName=cVA}"
                                WALIEFNR="{Binding LIEFNR,ElementName=cVA}"
                                FBRTU="{Binding FBRTU,ElementName=cVA}"  
                                FBRTL="{Binding FBRTL,ElementName=cVA}"  
                                FGRLFD="{Binding FGRLFD,ElementName=cVA}"  
                                FGRQM="{Binding FGRQM,ElementName=cVA}"  
                                FFDDIK="{Binding FFDDIK,ElementName=cVA}"  
                                FFDDIS="{Binding FFDDIS,ElementName=cVA}"
                                DENUM="{Binding FDDIM,ElementName=cVA}"                      
                                IsEdit="{Binding IsEdit,ElementName=cVA}" 
                                IsSaved="{Binding IsSaved,ElementName=cVA}" 
                                IsExtProd="{Binding IsExtProd,ElementName=cVA}"
                                IsCO="True"   
                                IsWS22R="True"  
                                IsWS22T="True"  
                                IsWS22="False"   
                                IsShowRight="{Binding IsShowRight,ElementName=cVA}"
                                IsImageMax="{Binding IsImageMax,ElementName=cVA}" 
                                IMAGEPATH="{Binding IMAGEPATH,ElementName=cVA}"
                                DEFTXT="{Binding DEFWSTXT,ElementName=cVA}"/> 
                            <ST:TWS04   Grid.Row="1"  Grid.Column="1" 
                                 Margin="0,5,0,0" Name="cWS04"
                               EXAUF="{Binding KEY,ElementName=cWS}"
                               IsEdit="{Binding IsEdit,ElementName=cVA}"
                               IsSaved="{Binding IsSaved,ElementName=cVA}"
                              />
                        </Grid>

                    </TabItem>
                    <TabItem Header="成本"  Name="ZoneCO">
                        <WS:TWSCO Grid.Row="0" Grid.RowSpan="3" Grid.Column="1"
                          Visibility="{Binding IsCO,ElementName=cWS,Converter={StaticResource bv}}"
                          EXAUF="{Binding KEY,ElementName=cWS}"
                        />
                    </TabItem>
                    <TabItem Header="准备工艺"  Name="ZoneVW">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="1*"/>
                            </Grid.RowDefinitions>
                            <WK:TWS31  Grid.Row="0"     Name="cWS31"
                                 IsCanLoad="{Binding IsSelected,ElementName=ZoneVW}"
                              IsAuto="True"
                               EXAUF="{Binding PRFART,ElementName=cVA}"
                               IsEdit="{Binding IsEdit,ElementName=cVA}" 
                               IsSaved="{Binding IsSaved,ElementName=cVA}"/>
                            <Grid Grid.Row="1" Grid.Column="1">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>

                                <BS:TBS03 Grid.Row="0" Name="cBS03"
                                  IsAuto="True"
                                  IsEdit="{Binding IsEdit,ElementName=cVA}"
                                   IsSaved="{Binding IsSaved,ElementName=cVA}"
                                   ORDERNUM="{Binding KEY,ElementName=cBS07}" 
                                  />
                                <BH:TBS04 Grid.Row="1" 
                                 IsAuto="True"
                                  IsEdit="{Binding IsEdit,ElementName=cVA}"
                                      IsSaved="{Binding IsSaved,ElementName=cVA}"
                                  ORDERNUM="{Binding KEY,ElementName=cBS07}"/>

                                <BC:TBS07 Grid.Row="2"
                                  x:Name="cBS07"
                                  IsAuto="True" 
                                    IsEdit="{Binding IsEdit,ElementName=cVA}"
                                    IsSaved="{Binding IsSaved,ElementName=cVA}"
                                  ORDERNUM="{Binding WARP,ElementName=cWS31}" 
                                  />
                            </Grid>

                        </Grid>
                    </TabItem>
                    <TabItem Header="备注">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="1*"/>
                                <ColumnDefinition Width="1*"/>
                            </Grid.ColumnDefinitions>
                            <ex:AniScrollViewer Grid.Column="1"  >
                                <ex:TImage  IsImageMax="{Binding ElementName=cWS,Path=IsImageMax}"
                                      PHOTOLINK="{Binding ElementName=cWS,Path=PHOTOLINK}"
                                    />
                            </ex:AniScrollViewer>
                        </Grid>
                    </TabItem>
                    <TabItem Header="经纬纱" Name="ZoneJW">
                        <Grid Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2"  >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="1*"/>
                                <ColumnDefinition Width="1*"/>
                            </Grid.ColumnDefinitions>
                            <BG:TSBS08 Grid.Column="0" 
                                       IsAuto="True"
                                       IsCanLoad="{Binding IsSelected,ElementName=ZoneJW}"
                                       FAKTOR="{Binding FAKTOR,ElementName=cBS03}"
                                       EXAUF="{Binding WARP,ElementName=cWS31}"
                                     />
                            <WG:TWS33 Grid.Column="1"  
                                      IsAuto="True"
                                       IsCanLoad="{Binding IsSelected,ElementName=ZoneJW}"
                                      DENUM="{Binding DENUM,ElementName=cWS}" 
                                      RWBRT="{Binding RWBRT,ElementName=cWS}" 
                                      RBRTOL="{Binding RBRTOL,ElementName=cWS}"  
                                      GFDISM="{Binding GFDISM,ElementName=cWS}" 
                                      WTKEY="{Binding WTKEY,ElementName=cWS}" 
                                      EXAUF="{Binding PRFART,ElementName=cVA}" 
                                     />
                        </Grid>
                    </TabItem>
                </TabControl>
            </Grid>

        </TabItem>
        <TabItem Header="成本评估" Name="cCO">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="1*"/>
                    <RowDefinition Height="1*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <StackPanel>
                    <WrapPanel>
                        <Button Margin="10,0,0,0" Content="初始化" Click="StartABCommand"/>
                        <Button Margin="10,0,0,0" Content="启动评估" Click="StartKACommand"/>
                    </WrapPanel>
                </StackPanel>
                <Grid Grid.Row="1">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                        <RowDefinition Height="1*"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <WrapPanel Grid.Column="0" Grid.Row="0">
                        <TextBlock  Text="整理/销售费用"/>
                        <CO:TMCO03FN EXAUF="{Binding ABAUF,ElementName=cRZ}"
                                />
                    </WrapPanel>
                    <AR:TAB14FNVK Grid.Column="0" Grid.Row="1" 
                                ORDERNUM="{Binding KEY,ElementName=cRZ}"/>
                    <WrapPanel Grid.Column="1" Grid.Row="0">
                        <TextBlock  Text="织造费用"/>
                        <CO:TMCO03 EXAUF="{Binding ABAUF,ElementName=cDI}"
                                />
                    </WrapPanel>

                    <AR:TAB14WV Grid.Column="1" Grid.Row="1" 
                                ORDERNUM="{Binding KEY,ElementName=cDI}"/>
                    <MUX:TMCO07  Grid.Column="1" Grid.Row="2" 
                                 MTYPE="G"
                                 EXAUF="{Binding ABAUF,ElementName=cDI}"
                                />
                    <WrapPanel Grid.Column="2" Grid.Row="0">
                        <TextBlock  Text="织前准备"/>
                        <CO:TMCO03 EXAUF="{Binding ABAUF,ElementName=cVW}"
                                />
                    </WrapPanel>
                    <AR:TAB14FN Grid.Column="2" Grid.Row="1" 
                                ORDERNUM="{Binding KEY,ElementName=cVW}"/>
                    <MUX:TMCO07  Grid.Column="2" Grid.Row="2" 
                                 MTYPE="G"
                                EXAUF="{Binding ABAUF,ElementName=cVW}"
                                />
                </Grid>
                <Grid Grid.Row="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <AB:TAB05RZ  Grid.Column="0"  POSTYP="VA "
                                         IsCanLoad="{Binding IsSelected,ElementName=cCO}"
                                         MAKE2ORD="True"  
                                          IsDI="True"
                                           Name="cRZ" 
                                          dwWS="{Binding dwWS,ElementName=cWS}" 
                                           IsAuto="True" 
                                          EXAUF="{Binding EXORD,ElementName=TV}"
                                           />
                    <AB:TWAB55DI   Grid.Column="1"  
                                        POSTYP="DI "
                                         Name="cDI"
                                         MAKE2ORD="True"
                                    IsAuto="False" 
                                          dwWS="{Binding dwWS,ElementName=cWS}" 
                                        />
                    <AB:TWAB45  Grid.Column="2"  
                                    POSTYP="VW "
                                    Name="cVW"
                                      IsAuto="False" 
                                     MAKE2ORD="True" 
                             />
                </Grid>
            </Grid>

        </TabItem>
    </TabControl>

</local:DocumentBase>
    
